package com.travelshare.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.travelshare.common.annotation.Excel;
import com.travelshare.common.core.domain.TreeEntity;

/**
 * 用户文章评论对象 tb_detail_review
 * 
 * @author travelshare
 * @date 2024-03-05
 */
public class DetailReview extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long reviewId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 文章id */
    @Excel(name = "文章id")
    private Long detailId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 评论类型（0：首评，1：神评） */
    @Excel(name = "评论类型", readConverterExp = "0=：首评，1：神评")
    private Integer reviewType;

    /** $column.columnComment */
    private String delFlag;
    
    private String nickName;
    private String avatar;

    public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public void setReviewId(Long reviewId) 
    {
        this.reviewId = reviewId;
    }

    public Long getReviewId() 
    {
        return reviewId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setReviewType(Integer reviewType) 
    {
        this.reviewType = reviewType;
    }

    public Integer getReviewType() 
    {
        return reviewType;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reviewId", getReviewId())
            .append("parentId", getParentId())
            .append("content", getContent())
            .append("detailId", getDetailId())
            .append("userId", getUserId())
            .append("reviewType", getReviewType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
